package com.ks.app.admin.action;

import javax.annotation.Resource;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import com.ks.app.admin.service.TestService;

@ParentPackage("struts-default")
@Namespace("")
@InterceptorRef("defaultStack")
@Results( { @Result(name = "error", location = "/WEB-INF/admin/cfg/test.jsp"),
		@Result(name = "test", location = "/WEB-INF/admin/send.jsp") })
public class TestAction extends BaseAction {
	
	private static final long serialVersionUID = -8295959916411648764L;

	@Resource
	private TestService testService;
	/***
	 * 测试
	 * @return
	 */
	@Action("/admin/cfg/test/test")
	public String test() {
		testService.getAll();
		return "test";
	}

}
